home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / tool_inc.zip / ITOA1.INC < prev    next >
Text File  |  1989-06-02  |  801b  |  42 lines

  1.  
  2. (*
  3.  * Copyright 1987, 1989 Samuel H. Smith;  All rights reserved
  4.  *
  5.  * This is a component of the ProDoor System.
  6.  * Do not distribute modified versions without my permission.
  7.  * Do not remove or alter this notice or any other copyright notice.
  8.  * If you use this in your own program you must distribute source code.
  9.  * Do not use any of this in a commercial product.
  10.  *
  11.  *)
  12.  
  13. (*
  14.  * return the string equivelant of an integer value
  15.  *
  16.  *)
  17.  
  18. function itoa (int: integer): string8;
  19. var
  20.    tstr: string8;
  21. begin
  22.    str(int, tstr);
  23.    itoa := tstr;
  24. end;
  25.  
  26. function ltoa (int: longint): string8;
  27. var
  28.    tstr: string8;
  29. begin
  30.    str(int, tstr);
  31.    ltoa := tstr;
  32. end;
  33.  
  34. function wtoa (w: word): string8;
  35. var
  36.    tstr: string8;
  37. begin
  38.    str(w, tstr);
  39.    wtoa := tstr;
  40. end;
  41.  
  42.